<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/finance/djlc/cw_djlc_evaluation_class.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/finance/djlc/cw_djlc_evaluation_class.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'cw_djlc_evaluation_class_id',
                footer: "Foots",
                cnName: '定价流程_评估类',
                name: 'djlc/cw_djlc_evaluation_class',
                url: "/cw_djlc_evaluation_class/",
                sortName: "CreateDate"
            });
            const editFormFields = ref({"value_code":"","value_desc":""});
            const editFormOptions = ref([[{"title":"评估类代码","field":"value_code"}],
                              [{"title":"评估类描述","field":"value_desc"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'cw_djlc_evaluation_class_id',title:'定价流程评估类id',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'value_code',title:'评估类代码',type:'string',width:120,align:'left',sort:true},
                       {field:'value_desc',title:'评估类描述',type:'string',width:220,align:'left'},
                       {field:'status',title:'状态：1可用，0不可用',type:'byte',width:110,hidden:true,require:true,align:'left'},
                       {field:'Creator',title:'创建人',type:'string',width:100,hidden:true,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,hidden:true,align:'left',sort:true},
                       {field:'Modifier',title:'修改人',type:'string',width:100,hidden:true,align:'left'},
                       {field:'ModifyDate',title:'修改时间',type:'datetime',width:150,hidden:true,align:'left',sort:true}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
